package com.movie.act;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.movie.bean.MoviePinLun;
import com.movie.bean.MoviePinLunList;
import com.movie.bean.SaveMovieNew;
import com.movie.bean.SaveMovieNewList;
import com.movie.bean.SeatOrder;
import com.movie.bean.SeatOrderList;
import com.movie.bean.TicketExchange;
import com.movie.bean.TicketExchangeList;
import com.movie.util.Log;

/**
 * 33-我的地盘-兑 换券 34-我的地盘-我 的收藏 35-我的地盘-评 论记录
 * 
 * @author Administrator
 * 
 */
public class MyZoneAct extends BaseActivity {
	private Context mContext = MyZoneAct.this;
	private ImageView menuone = null;
	private ImageView menutwo = null;
	private ImageView menuthree = null;
	private ImageView menufour = null;
	private ImageView selectmenu = null;
	private LinearLayout selectLinearLayout = null;
	private RelativeLayout container = null;
	private LinearLayout menuonepage = null;
	private LinearLayout menutwopage = null;
	private LinearLayout menuthreepage = null;
	private LinearLayout menufourpage = null;

	public void release() {
		Log.i("-----..MyZoneAct.release--------");
		menuone = null;
		menutwo = null;
		menuthree = null;
		menufour = null;
		if (container != null) {
			container.removeAllViews();
			container = null;
		}
		if (menuonepage != null) {
			menuonepage.removeAllViews();
			menuonepage = null;
		}
		if (menutwopage != null) {
			menutwopage.removeAllViews();
			menutwopage = null;
		}
		if (menuthreepage != null) {
			menuthreepage.removeAllViews();
			menuthreepage = null;
		}
		if (menufourpage != null) {
			menufourpage.removeAllViews();
			menufourpage = null;
		}
	}

	private int[] backgrounds=new int[]{R.drawable.icon_zuoweipiao_selector,
	                                R.drawable.icon_duihuanquan_selector,
	                                R.drawable.icon_shoucang_selector,  R.drawable.icon_pinglun_selector
	                               };
	private int[] disablebackgrounds=new int[]{R.drawable.icon_zuoweipiao_2,
            R.drawable.icon_duihuanquanp,
            R.drawable.icon_shoucang_2, R.drawable.icon_pinglun_2
           };
	@Override
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.i("-----..MyZoneAct.onCreate--------");
		// myzoneact
		setContentView(R.layout.myzoneact);
		initBackTitleBar();
		menuone = (ImageView) findViewById(R.id.menuone);
		menutwo = (ImageView) findViewById(R.id.menutwo);
		menuthree = (ImageView) findViewById(R.id.menuthree);
		menufour = (ImageView) findViewById(R.id.menufour);
		container = (RelativeLayout) findViewById(R.id.container);
		menuonepage = (LinearLayout) findViewById(R.id.menuonepage);
		menutwopage = (LinearLayout) findViewById(R.id.menutwopage);
		menuthreepage = (LinearLayout) findViewById(R.id.menuthreepage);
		menufourpage = (LinearLayout) findViewById(R.id.menufourpage);
		selectLinearLayout = menuonepage;
		selectLinearLayout.setVisibility(View.VISIBLE);
		selectmenu = menuone;
		selectmenu.setTag(new Integer(backgrounds[0]));
		selectmenu.setEnabled(false);
		selectmenu.setBackgroundResource(disablebackgrounds[0]);
		menuone.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				selectmenu.setEnabled(true);
				selectmenu.setBackgroundResource((Integer) selectmenu.getTag());
				selectLinearLayout.setVisibility(View.INVISIBLE);
				selectmenu = menuone;
				menuone.setTag(new Integer(backgrounds[0]));
				menuone.setEnabled(false);
				menuone.setBackgroundResource(disablebackgrounds[0]);
				menuonepage.setVisibility(View.VISIBLE);
				selectLinearLayout = menuonepage;
			}
		});
		menutwo.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				selectmenu.setEnabled(true);
				selectmenu.setBackgroundResource((Integer) selectmenu.getTag());
				selectLinearLayout.setVisibility(View.INVISIBLE);
				selectmenu = menutwo;
				menutwo.setTag(new Integer(backgrounds[1]));
				menutwo.setEnabled(false);
				menutwo.setBackgroundResource(disablebackgrounds[1]);
				initTicketExchanges();
				menutwopage.setVisibility(View.VISIBLE);
				selectLinearLayout = menutwopage;
			}
		});

		menuthree.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				selectmenu.setEnabled(true);
				selectmenu.setBackgroundResource((Integer) selectmenu.getTag());
				selectLinearLayout.setVisibility(View.INVISIBLE);
				selectmenu = menuthree;
				menuthree.setTag(new Integer(backgrounds[2]));
				menuthree.setEnabled(false);
				menuthree.setBackgroundResource(disablebackgrounds[2]);
				initSaveMovieNews();
				menuthreepage.setVisibility(View.VISIBLE);
				selectLinearLayout = menuthreepage;
			}
		});

		menufour.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				selectmenu.setEnabled(true);
				selectmenu.setBackgroundResource((Integer) selectmenu.getTag());
				selectLinearLayout.setVisibility(View.INVISIBLE);
				selectmenu = menufour;
				menufour.setTag(new Integer(backgrounds[3]));
				menufour.setEnabled(false);
				menufour.setBackgroundResource(disablebackgrounds[3]);
				initMoviePinLuns();
				menufourpage.setVisibility(View.VISIBLE);
				selectLinearLayout = menufourpage;
			}
		});
		initSeatOrders();

	}

	// -------------------座位票列表-----------START
	private void initSeatOrders() {
		if (seat_listview != null)
			return;
		Log.i("-----.MyZoneAct.initSeatOrders--------");
		seat_listview = (ListView) findViewById(R.id.seats_listview);
		mSeatOrderList = new SeatOrderList();
		SeatOrder mSeatOrder = null;
		for (int i = 0; i < 10; i++) {
			mSeatOrder = new SeatOrder();
			mSeatOrder.name = "龙门飞甲" + i;
			mSeatOrder.address = "金逸国际影城" + i;
			mSeatOrder.imgeUrl = "龙门飞甲" + i;
			if (i % 3 == 0) {
				mSeatOrder.status = "0";
			}
			if (i % 3 == 1) {
				mSeatOrder.status = "1";
			}
			if (i % 3 == 2) {
				mSeatOrder.status = "2";
			}
			mSeatOrder.date = "20120203";
			mSeatOrder.datetime = "11:3" + i;
			mSeatOrderList.addSeatOrder(mSeatOrder);
		}
		mSeatOrderListAdapter = new SeatOrderListAdapter();
		seat_listview.setAdapter(mSeatOrderListAdapter);
		seat_listview.setOnItemSelectedListener(new OnItemSelectedListener() {

			public void onItemSelected(AdapterView<?> mAdapterView,
					View parent, int position, long id) {
				mSeatOrderListAdapter.notifyDataSetChanged();
			}

			public void onNothingSelected(AdapterView<?> arg0) {
			}
		});
		seat_listview.setOnItemClickListener(new OnItemClickListener() {

			public void onItemClick(AdapterView<?> mAdapterView, View parent,
					int position, long id) {

			}
		});

	}

	private ListView seat_listview = null;
	private SeatOrderListAdapter mSeatOrderListAdapter = null;
	private SeatOrderList mSeatOrderList = null;

	public class SeatOrderListAdapter extends BaseAdapter {

		private LayoutInflater layoutFlater;

		public SeatOrderListAdapter() {
			super();
			layoutFlater = (LayoutInflater) mContext
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		}

		public int getCount() {
			return mSeatOrderList.mSeatOrders.size();
		}

		public Object getItem(int position) {
			return position;
		}

		public long getItemId(int position) {
			return position;
		}

		public View getView(int position, View convertView, ViewGroup parent) {
			final ViewHolderListViewItme holder;
			if (convertView == null) {
				convertView = layoutFlater.inflate(
						R.layout.movie_seatorder_fourpage_list_item, null);
				holder = new ViewHolderListViewItme();
				holder.imgeUrl = (ImageView) convertView
						.findViewById(R.id.imgeUrl);
				holder.name = (TextView) convertView.findViewById(R.id.name);
				holder.address = (TextView) convertView
						.findViewById(R.id.address);
				holder.date = (TextView) convertView.findViewById(R.id.date);
				holder.datetime = (TextView) convertView
						.findViewById(R.id.datetime);
				holder.status_zero = (TextView) convertView
						.findViewById(R.id.status_zero);
				holder.status_one = (TextView) convertView
						.findViewById(R.id.status_one);
				holder.status_two = (TextView) convertView
						.findViewById(R.id.status_two);
				convertView.setTag(holder);
			} else {
				holder = (ViewHolderListViewItme) convertView.getTag();
			}
			SeatOrder bean = mSeatOrderList.mSeatOrders.get(position);
			// String url = item.imageUrl;
			// holder.imageUrl.setTag(url);
			// ImageView cacheImage = holder.imageUrl;
			// final ListView listView = mListView;
			// NewInformationAct.mAsyncImageLoader.getListViewLogoItem(mContext,
			// url, cacheImage, listView, holder.mMyProcessbar);

			// holder.imgeUrl.setText( bean.imgeUrl );
			holder.name.setText(bean.name);
			holder.address.setText(bean.address);
			holder.date.setText(bean.date);
			holder.datetime.setText(bean.datetime);
			Log.i("-----MyZoneAct.SeatOrderListAdapter.getView-----bean.status--------"
					+ bean.status);
			if ("0".equals(bean.status))// 支付成功
			{
				holder.status_zero.setVisibility(View.VISIBLE);
				holder.status_one.setVisibility(View.GONE);
				holder.status_two.setVisibility(View.GONE);
			}

			else if ("1".equals(bean.status))// 等待支付
			{
				holder.status_zero.setVisibility(View.GONE);
				holder.status_one.setVisibility(View.VISIBLE);
				holder.status_two.setVisibility(View.GONE);
			}

			else if ("2".equals(bean.status))// 已使用
			{
				holder.status_zero.setVisibility(View.GONE);
				holder.status_one.setVisibility(View.GONE);
				holder.status_two.setVisibility(View.VISIBLE);
			}

			return convertView;
		}
	}

	private static class ViewHolderListViewItme {

		public ImageView imgeUrl = null;
		public TextView name = null;
		public TextView address = null;
		public TextView date = null;
		public TextView datetime = null;
		public TextView status_zero = null;
		public TextView status_one = null;
		public TextView status_two = null;

	}

	// -------------------座位票列表----------END

	// -------------------兑换券列表-----------START
	private void initTicketExchanges() {
		if (ticketchange_listview != null)
			return;
		Log.i("-----.MyZoneAct.initTicketExchanges--------");
		ticketchange_listview = (ListView) findViewById(R.id.ticketchange_listview);
		mTicketExchangeList = new TicketExchangeList();
		TicketExchange mTicketExchange = null;
		for (int i = 0; i < 10; i++) {
			mTicketExchange = new TicketExchange();
			mTicketExchange.name = "金逸国际影城" + i;
			mTicketExchange.imageUrl = "龙门飞甲" + i;
			if (i % 3 == 0) {
				mTicketExchange.status = "0";
			}
			if (i % 3 == 1) {
				mTicketExchange.status = "1";
			}
			if (i % 3 == 2) {
				mTicketExchange.status = "2";
			}
			mTicketExchange.endtime = "2012-02-03";

			mTicketExchangeList.addTicketExchange(mTicketExchange);
		}
		mTicketExchangeListAdapter = new TicketExchangeListAdapter();
		ticketchange_listview.setAdapter(mTicketExchangeListAdapter);
		ticketchange_listview
				.setOnItemSelectedListener(new OnItemSelectedListener() {

					public void onItemSelected(AdapterView<?> mAdapterView,
							View parent, int position, long id) {
						mTicketExchangeListAdapter.notifyDataSetChanged();
					}

					public void onNothingSelected(AdapterView<?> arg0) {
					}
				});
		ticketchange_listview.setOnItemClickListener(new OnItemClickListener() {

			public void onItemClick(AdapterView<?> mAdapterView, View parent,
					int position, long id) {

			}
		});

	}

	private ListView ticketchange_listview = null;
	private TicketExchangeListAdapter mTicketExchangeListAdapter = null;
	private TicketExchangeList mTicketExchangeList = null;

	public class TicketExchangeListAdapter extends BaseAdapter {

		private LayoutInflater layoutFlater;

		public TicketExchangeListAdapter() {
			super();
			layoutFlater = (LayoutInflater) mContext
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		}

		public int getCount() {
			return mTicketExchangeList.mTicketExchanges.size();
		}

		public Object getItem(int position) {
			return position;
		}

		public long getItemId(int position) {
			return position;
		}

		public View getView(int position, View convertView, ViewGroup parent) {
			final ViewHolderListViewItme2 holder;
			if (convertView == null) {
				convertView = layoutFlater.inflate(
						R.layout.movie_ticketchange_fourpage_list_item, null);
				holder = new ViewHolderListViewItme2();
				holder.imageUrl = (ImageView) convertView
						.findViewById(R.id.imageUrl);
				holder.name = (TextView) convertView.findViewById(R.id.name);
				holder.endtime = (TextView) convertView
						.findViewById(R.id.endtime);
				holder.status_zero_ex = (TextView) convertView
						.findViewById(R.id.status_zero_ex);
				holder.status_one_ex = (TextView) convertView
						.findViewById(R.id.status_one_ex);
				holder.status_two_ex = (TextView) convertView
						.findViewById(R.id.status_two_ex);
				convertView.setTag(holder);
			} else {
				holder = (ViewHolderListViewItme2) convertView.getTag();
			}
			TicketExchange bean = mTicketExchangeList.mTicketExchanges
					.get(position);
			// String url = item.imageUrl;
			// holder.imageUrl.setTag(url);
			// ImageView cacheImage = holder.imageUrl;
			// final ListView listView = mListView;
			// NewInformationAct.mAsyncImageLoader.getListViewLogoItem(mContext,
			// url, cacheImage, listView, holder.mMyProcessbar);

			// holder.imgeUrl.setText( bean.imgeUrl );
			// holder.imageUrl.setText(bean.imageUrl);
			holder.name.setText(bean.name);
			holder.endtime.setText(bean.endtime);
			Log.i("-----MyZoneAct.TicketExchangeListAdapter.getView-----bean.status--------"
					+ bean.status);
			if ("0".equals(bean.status))// 支付成功
			{
				holder.status_zero_ex.setVisibility(View.VISIBLE);
				holder.status_one_ex.setVisibility(View.GONE);
				holder.status_two_ex.setVisibility(View.GONE);
			}

			else if ("1".equals(bean.status))// 等待支付
			{
				holder.status_zero_ex.setVisibility(View.GONE);
				holder.status_one_ex.setVisibility(View.VISIBLE);
				holder.status_two_ex.setVisibility(View.GONE);
			}

			else if ("2".equals(bean.status))// 已使用
			{
				holder.status_zero_ex.setVisibility(View.GONE);
				holder.status_one_ex.setVisibility(View.GONE);
				holder.status_two_ex.setVisibility(View.VISIBLE);
			}

			return convertView;
		}
	}

	private static class ViewHolderListViewItme2 {

		public ImageView imageUrl = null;
		public TextView name = null;
		public TextView status_zero_ex = null;
		public TextView status_one_ex = null;
		public TextView status_two_ex = null;
		public TextView endtime = null;

	}

	// -------------------兑换券列表----------END

	// -------------------收藏电影列表-----------START
	private void initSaveMovieNews() {
		if (moviesave_listview != null)
			return;
		Log.i("-----.MyZoneAct.initSaveMovieNews--------");
		moviesave_listview = (ListView) findViewById(R.id.moviesave_listview);
		mSaveMovieNewList = new SaveMovieNewList();
		SaveMovieNew mSaveMovieNew = null;
		for (int i = 0; i < 10; i++) {
			mSaveMovieNew = new SaveMovieNew();
			mSaveMovieNew.name = "金逸国际影城" + i;
			mSaveMovieNew.imageUrl = "龙门飞甲" + i;
			if (i % 3 == 0) {
				mSaveMovieNew.play_status = "0";
			}
			if (i % 3 == 1) {
				mSaveMovieNew.play_status = "1";
			}
			if (i % 3 == 2) {
				mSaveMovieNew.play_status = "2";
			}
			mSaveMovieNew.playtime = "2012-02-03";

			mSaveMovieNewList.addSaveMovieNew(mSaveMovieNew);
		}
		mSaveMovieNewListAdapter = new SaveMovieNewListAdapter();
		moviesave_listview.setAdapter(mSaveMovieNewListAdapter);
		moviesave_listview
				.setOnItemSelectedListener(new OnItemSelectedListener() {

					public void onItemSelected(AdapterView<?> mAdapterView,
							View parent, int position, long id) {
						mSaveMovieNewListAdapter.notifyDataSetChanged();
					}

					public void onNothingSelected(AdapterView<?> arg0) {
					}
				});
		moviesave_listview.setOnItemClickListener(new OnItemClickListener() {

			public void onItemClick(AdapterView<?> mAdapterView, View parent,
					int position, long id) {

			}
		});

	}

	private ListView moviesave_listview = null;
	private SaveMovieNewListAdapter mSaveMovieNewListAdapter = null;
	private SaveMovieNewList mSaveMovieNewList = null;

	public class SaveMovieNewListAdapter extends BaseAdapter {

		private LayoutInflater layoutFlater;

		public SaveMovieNewListAdapter() {
			super();
			layoutFlater = (LayoutInflater) mContext
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		}

		public int getCount() {
			return mSaveMovieNewList.mSaveMovieNews.size();
		}

		public Object getItem(int position) {
			return position;
		}

		public long getItemId(int position) {
			return position;
		}

		public View getView(int position, View convertView, ViewGroup parent) {
			final ViewHolderListViewItme3 holder;
			if (convertView == null) {
				convertView = layoutFlater.inflate(
						R.layout.movie_savemovie_fourpage_list_item, null);
				holder = new ViewHolderListViewItme3();
				holder.imageUrl = (ImageView) convertView
						.findViewById(R.id.imageUrl);
				holder.name = (TextView) convertView.findViewById(R.id.name);
				holder.playtime = (TextView) convertView
						.findViewById(R.id.playtime);
				holder.play_zero = (TextView) convertView
						.findViewById(R.id.play_zero);
				holder.play_one = (TextView) convertView
						.findViewById(R.id.play_one);
				holder.play_two = (TextView) convertView
						.findViewById(R.id.play_two);
				convertView.setTag(holder);
			} else {
				holder = (ViewHolderListViewItme3) convertView.getTag();
			}
			SaveMovieNew bean = mSaveMovieNewList.mSaveMovieNews.get(position);
			// String url = item.imageUrl;
			// holder.imageUrl.setTag(url);
			// ImageView cacheImage = holder.imageUrl;
			// final ListView listView = mListView;
			// NewInformationAct.mAsyncImageLoader.getListViewLogoItem(mContext,
			// url, cacheImage, listView, holder.mMyProcessbar);

			// holder.imgeUrl.setText( bean.imgeUrl );
			// holder.imageUrl.setText(bean.imageUrl);
			holder.name.setText(bean.name);
			holder.playtime.setText(bean.playtime);
			Log.i("-----MyZoneAct.SaveMovieNewListAdapter.getView-----bean.status--------"
					+ bean.play_status);
			if ("0".equals(bean.play_status))// 正在热映
			{
				holder.play_zero.setVisibility(View.VISIBLE);
				holder.play_one.setVisibility(View.GONE);
				holder.play_two.setVisibility(View.GONE);
			}

			else if ("1".equals(bean.play_status))// 即将上映
			{
				holder.play_zero.setVisibility(View.GONE);
				holder.play_one.setVisibility(View.VISIBLE);
				holder.play_two.setVisibility(View.GONE);
			}

			else if ("2".equals(bean.play_status))// 已下线
			{
				holder.play_zero.setVisibility(View.GONE);
				holder.play_one.setVisibility(View.GONE);
				holder.play_two.setVisibility(View.VISIBLE);
			}

			return convertView;
		}
	}

	private static class ViewHolderListViewItme3 {

		public TextView play_zero = null;
		public TextView play_one = null;
		public TextView play_two = null;
		public ImageView imageUrl = null;
		public TextView name = null;
		public TextView playtime = null;

	}

	// -------------------收藏电影列表-----------END

	// -------------------我的评论列表-----------START
	private void initMoviePinLuns() {
		if (mywrite_listview != null)
			return;
		Log.i("-----.MyZoneAct.initMoviePinLuns--------");
		mywrite_listview = (ListView) findViewById(R.id.mywrite_listview);
		mMoviePinLunList = new MoviePinLunList();
		MoviePinLun mMoviePinLun = null;
		for (int i = 0; i < 10; i++) {
			mMoviePinLun = new MoviePinLun();
			mMoviePinLun.name = "Rainbow" + i;
			mMoviePinLun.imageUrl = "图片" + i;
			mMoviePinLun.time = i + "分钟前";
			mMoviePinLun.sharecount = i + "5";
			mMoviePinLun.goodcount = i + "5";
			if (i % 2 == 0) {
				mMoviePinLun.point = "5";
			} else {
				mMoviePinLun.point = "";
			}

			mMoviePinLun.ping = "真的不错哦真的不错哦真的不错哦  ";
			mMoviePinLunList.addMoviePinLun(mMoviePinLun);
		}
		mMoviePinLunListAdapter = new MoviePinLunListAdapter();
		mywrite_listview.setAdapter(mMoviePinLunListAdapter);
		mywrite_listview
				.setOnItemSelectedListener(new OnItemSelectedListener() {

					public void onItemSelected(AdapterView<?> mAdapterView,
							View parent, int position, long id) {
						mMoviePinLunListAdapter.notifyDataSetChanged();
					}

					public void onNothingSelected(AdapterView<?> arg0) {
					}
				});
		mywrite_listview.setOnItemClickListener(new OnItemClickListener() {

			public void onItemClick(AdapterView<?> mAdapterView, View parent,
					int position, long id) {

			}
		});

	}

	private ListView mywrite_listview = null;
	private MoviePinLunListAdapter mMoviePinLunListAdapter = null;
	private MoviePinLunList mMoviePinLunList = null;

	public class MoviePinLunListAdapter extends BaseAdapter {

		private LayoutInflater layoutFlater;

		public MoviePinLunListAdapter() {
			super();
			layoutFlater = (LayoutInflater) mContext
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		}

		public int getCount() {
			return mMoviePinLunList.mMoviePinLuns.size();
		}

		public Object getItem(int position) {
			return position;
		}

		public long getItemId(int position) {
			return position;
		}

		public View getView(int position, View convertView, ViewGroup parent) {
			final ViewHolderListViewItme4 holder;
			if (convertView == null) {
				convertView = layoutFlater.inflate(
						R.layout.movie_pinlun_fourpage_list_item, null);
				holder = new ViewHolderListViewItme4();
				holder.imageUrl = (ImageView) convertView
						.findViewById(R.id.imageUrl);
				holder.pointtrate = (ImageView) convertView
						.findViewById(R.id.pointtrate);
				holder.ping_l = (LinearLayout) convertView
						.findViewById(R.id.ping_l);
				holder.name = (TextView) convertView.findViewById(R.id.name);
				holder.time = (TextView) convertView.findViewById(R.id.time);
				holder.sharecount = (TextView) convertView
						.findViewById(R.id.sharecount);
				holder.goodcount = (TextView) convertView
						.findViewById(R.id.goodcount);
				holder.point = (TextView) convertView.findViewById(R.id.point);
				holder.ping = (TextView) convertView.findViewById(R.id.ping);
				convertView.setTag(holder);
			} else {
				holder = (ViewHolderListViewItme4) convertView.getTag();
			}
			MoviePinLun bean = mMoviePinLunList.mMoviePinLuns.get(position);
			// String url = item.imageUrl;
			// holder.imageUrl.setTag(url);
			// ImageView cacheImage = holder.imageUrl;
			// final ListView listView = mListView;
			// NewInformationAct.mAsyncImageLoader.getListViewLogoItem(mContext,
			// url, cacheImage, listView, holder.mMyProcessbar);

			// holder.imgeUrl.setText( bean.imgeUrl );
			// holder.imageUrl.setText(bean.imageUrl);
			holder.name.setText(bean.name);
			holder.time.setText(bean.time);
			holder.sharecount.setText(bean.sharecount);
			holder.goodcount.setText(bean.goodcount);
			holder.ping.setText(bean.ping);
			//
			if ("".equals(bean.point)) {
				holder.ping_l.setVisibility(View.GONE);
			} else {
				holder.ping_l.setVisibility(View.VISIBLE);
				holder.point.setText(bean.point);
			}

			return convertView;
		}
	}

	private static class ViewHolderListViewItme4 {

		public ImageView imageUrl = null;
		public ImageView pointtrate = null;
		public TextView name = null;
		public TextView time = null;

		public TextView sharecount = null;
		public TextView goodcount = null;
		public TextView point = null;
		public TextView ping = null;

		public LinearLayout ping_l = null;

	}
	// -------------------我的评论列表-----------END
}
